package com.itheima.mm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BsUser {
    @TableId(type = IdType.AUTO)//主键自增
    private Integer id;//主键

    private String avatar;//头像

    private LocalDateTime createTime;//创建时间

    private String email;//邮箱

    private String introduction;//介绍

    private LocalDateTime lastUpdateTime;//最新修改时间

    private String password;//密码

    private String phone;//手机号

    private Integer status;//账号状态0启用1禁用
    @TableField("username")
    private String userName;//用户名称

    private String sex;//性别

    private String role;//角色

    private Long permissionGroupId;//权限组id

}
